package com.example.networktest;

import java.util.List;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface HttpBinRequest {


  @POST("post")
  @FormUrlEncoded
  Call<ResponseBody> postRequest(@Field("username") String userName, @Field("password") String pwd);


  @GET("get")
  Call<ResponseBody> getRequest(@Query("username") String userName, @Query("password") String pwd);


}

